<!DOCTYPE html>
<html class="no-js">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1,user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <!-- 启用360浏览器的极速模式(webkit) -->
  <meta name="renderer" content="webkit">
  <!-- 避免IE使用兼容模式 -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
  <meta name="HandheldFriendly" content="true">
  <!-- 微软的老式浏览器 -->
  <meta name="MobileOptimized" content="320">
  <!-- uc强制竖屏 -->
  <meta name="screen-orientation" content="portrait">
  <!-- QQ强制竖屏 -->
  <meta name="x5-orientation" content="portrait">
  <!-- UC强制全屏 -->
  <meta name="full-screen" content="yes">
  <!-- QQ强制全屏 -->
  <meta name="x5-fullscreen" content="true">
  <!-- UC应用模式 -->
  <meta name="browsermode" content="application">
  <!-- QQ应用模式 -->
  <meta name="x5-page-mode" content="app">
  <!-- windows phone 点击无高光 -->
  <meta name="msapplication-tap-highlight" content="no">
	<script type="text/javascript" src="{{ asset('js/jquery-1.8.3.min.js') }}"></script>
  <!-- 适应移动端end -->
	<title>去评价</title>

	<link rel="stylesheet" href="{{ asset('myhome/css/common.css') }}">
	<link rel="stylesheet" href="{{ asset('myhome/css/font.css') }}">
	<link rel="stylesheet" href="{{ asset('myhome/css/header.css') }}">
	<link rel="stylesheet" href="{{ asset('myhome/css/footer.css') }}">
	<link rel="stylesheet" href="{{ asset('myhome/css/index.css') }}">
	<link rel="stylesheet" href="{{ asset('myhome/css/responsive.css') }}">
	<link rel="stylesheet" href="{{ asset('css/index.css') }}"/>
	<style>
		.coupon-list li{
			float: left;
			width: 50%;
			text-align: center;
		}
	</style>
</head>
<body>
	@if(session('msg') == '4')
		<script>alert('评价成功!');</script>
	@endif
	@if(session('msg') == '6')
		<script>alert('取消订单成功!');</script>
	@endif
	@if(session('msg') == '7')
		<script>alert('删除订单成功!');</script>
	@endif
	{{--<!--头部-->{{ url('home/user/order/orderlist/'.$page) }}--}}
	<header>
		<div class="header">
			<h1>去评价</h1>
			<a onclick="history.go(-1);" class="return"><i></i></a>
		</div>
	</header>
	<div id="user-b" style="margin-top:55px;">
		<!--html5 nav-->
		<form action="/home/user/order/evaluateorder" method="post">
			<input type='hidden' name='_token' value='{{ csrf_token() }}'>
			<input type='hidden' name='order_id' value='{{ $list[0]->order_id }}'>
			<div class="myorder-tab">
				<div class="myorder-content">
					<ul >
						@foreach($list as $v)
						<li class="mc-all cc-one tab_content show">
							<input type="hidden" name="product_id[]" value="{{ $v->product_id }}">

							<!--商品评价-->
							<div class="list-content cartlist order-Pro memberDetaillist" style="margin:0">
								<ul class="line-li">
									<li>
										<a href="#"><div class="pro-img"><img src="{{ url('upload/product/'.$v->preview) }}" alt=""></div></a>
										<div class="pro-con"><textarea name="content[]" rows="4" placeholder="请写下对宝贝的感受吧，对他人帮助很大哦" style="border:0 solid #fff" ></textarea></div>
									</li>
								</ul>
							</div>
							<!--评价星星-->
							<div class="memberDetailheader line" style="line-height: 20px">
										<b>商品评价:</b>
								<span class="five-pointed">
									<input type="hidden" name="level[]" value="0">
									<img onclick="level(1,this)" style="width: 20px;" src="{{  url('myhome/img/detail-iocn001.png') }}"/><img onclick="level(2,this)" style="width: 20px;" src="{{  url('myhome/img/detail-iocn001.png') }}"/><img onclick="level(3,this)" style="width: 20px;" src="{{  url('myhome/img/detail-iocn001.png') }}"/><img onclick="level(4,this)" style="width: 20px;" src="{{  url('myhome/img/detail-iocn001.png') }}"/><img onclick="level(5,this)" style="width: 20px;" src="{{  url('myhome/img/detail-iocn001.png') }}"/>
								</span>
							</div>
						</li>
						@endforeach
					</ul>
				</div>
			</div>
			<!--按钮-->
			<div class="memberDetailFooter line">
				<button type="submit">去评价</button>
			</div>
		</form>
	</div>
	<script type="text/javascript">
        function level(s,bn)
        {
            var name = $(bn).parent().children('input').attr('name');
            var str = "<input type='hidden' name="+name+" value="+s+">";
            var k = 6-s;
            for(i=1;i<s+1;i++)
            {
                str += "<img onclick='level("+i+",this)' style='width: 20px;' src='{{  url('myhome/img/detail-iocn01.png') }}'/>";
            }
            for(j=1;j<k;j++)
            {
                var d=j+s;
                str += "<img onclick='level("+d+",this)' style='width: 20px;' src='{{  url('myhome/img/detail-iocn001.png') }}'/>";

            }
            $(bn).parent().html(str);

        }

    </script>
</body>
</html>